package com.ruoyi.kycinfo.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kycinfo.mapper.KycWorkMapper;
import com.ruoyi.kycinfo.domain.KycWork;
import com.ruoyi.kycinfo.service.IKycWorkService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-10
 */
@Service
public class KycWorkServiceImpl implements IKycWorkService
{
    @Autowired
    private KycWorkMapper kycWorkMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param workId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public KycWork selectKycWorkByWorkId(Long workId)
    {
        return kycWorkMapper.selectKycWorkByWorkId(workId);
    }

    @Override
    public KycWork selectKycWorkByUserInfoId(Long userInfoId) {
        return kycWorkMapper.selectKycWorkByUserInfoId(userInfoId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param kycWork 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<KycWork> selectKycWorkList(KycWork kycWork)
    {
        return kycWorkMapper.selectKycWorkList(kycWork);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param kycWork 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertKycWork(KycWork kycWork)
    {
        kycWork.setCreateTime(DateUtils.getNowDate());
        return kycWorkMapper.insertKycWork(kycWork);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param kycWork 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateKycWork(KycWork kycWork)
    {
        kycWork.setUpdateTime(DateUtils.getNowDate());
        return kycWorkMapper.updateKycWork(kycWork);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param workIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteKycWorkByWorkIds(Long[] workIds)
    {
        return kycWorkMapper.deleteKycWorkByWorkIds(workIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param workId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteKycWorkByWorkId(Long workId)
    {
        return kycWorkMapper.deleteKycWorkByWorkId(workId);
    }

    @Override
    public int deleteKycWorkByUserInfoId(long userInfoId) {
        return kycWorkMapper.deleteKycWorkByUserInfoId(userInfoId);
    }

    @Override
    public int deleteKycWorkByUserInfoIds(Long[] userInfoIds) {
        return kycWorkMapper.deleteKycWorkByUserInfoIds(userInfoIds);
    }


}
